﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Inovout.Web.Mvc
{
    internal class PermissonFilterCachedKey
    {
        public PermissonFilterCachedKey(string url, string method)
        {
            Url = url;
            this.Method = method;
            HashCodeCombiner hashCodeCombiner = new HashCodeCombiner();
            hashCodeCombiner.Add(Url);
            hashCodeCombiner.Add(Method);
            hashCode = hashCodeCombiner.CombinedHash;

        }
        public string Url { get; private set; }
        public string Method { get; private set; }
        //public override bool Equals(object obj)
        //{
        //    PermissonFilterCachedKey that = obj as PermissonFilterCachedKey;
        //    if (that == null)
        //    {
        //        return false;
        //    }
        //    return this.Url == that.Url && this.Method == that.Method;
        //}
        private int hashCode;
        //public override int GetHashCode()
        //{
        //    return hashCode;
        //}
    }
}
